home *** CD-ROM | disk | FTP | other *** search
/ Stickerpedia Stickerbook / Stickerbook.iso / pc / DATA / main.dxr / 00016_Script_ [ internal ] Next Button < prev    next >
Text File  |  2003-03-24  |  604b  |  47 lines

  1. property  pDirection
  2. property  spriteNum
  3.  
  4. global gCurInvisibleButton
  5.  
  6.  
  7.  
  8. on beginSprite me
  9.   pDirection = 1
  10. end
  11.  
  12.  
  13.  
  14.  
  15. on msUp me
  16.   switchImage pDirection
  17. end
  18.  
  19.  
  20.  
  21.  
  22. on lastImage mw, direction
  23.   
  24.   if gCurInvisibleButton = "" then sendsprite spriteNum, #show
  25.   if direction = pDirection then
  26.     gCurInvisibleButton = "Next"  
  27.     sendsprite spriteNum, #hide
  28.   else
  29.     sendsprite spriteNum, #show
  30.   end if
  31.   
  32. end
  33.  
  34.  
  35.  
  36. on notLastImage mw, direction
  37.   
  38.   if direction = pDirection then
  39.     gCurInvisibleButton = ""  
  40.     sendsprite spriteNum, #show
  41.   end if
  42.   
  43. end
  44.  
  45.  
  46.  
  47.